package com.yulinlin.admin.modules.i18.controller;

import com.yulinlin.common.controller.SuperController;
import com.yulinlin.common.domain.ResponseVo;
import io.swagger.annotations.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.i18.domain.I18TemplateEntity;

import com.yulinlin.admin.modules.i18.service.II18TemplateService;
import com.yulinlin.admin.modules.i18.domain.config.I18TemplateConfig;
import com.yulinlin.admin.modules.i18.domain.page.I18TemplatePage;

@Api(tags = "国际化模版")
@RestController
@RequestMapping("i18/i18Template")
public class I18TemplateController extends SuperController<I18TemplateEntity,I18TemplatePage>  {


    @Autowired
    private II18TemplateService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<I18TemplateConfig> config() {
        I18TemplateConfig config =I18TemplateConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
